﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class TopicBUS
    {
        public static List<TOPIC> getAllTopics()
        {
            return TopicDAO.getAllTopics();
        }

        public static TOPIC getTopic(int idtopic)
        {
            return TopicDAO.getTopic(idtopic);
        }

        public static TOPIC getTopic(String name)
        {
            return TopicDAO.getTopic(name);
        }

        public static bool Add(TOPIC tp)
        {
            return TopicDAO.Add(tp);
        }

        public static bool Edit(int idtopic, TOPIC tpUpdate)
        {
            return TopicDAO.Edit(idtopic, tpUpdate);
        }

        public static bool Remove(TOPIC tp)
        {
            return TopicDAO.Remove(tp);
        }
    }
}
